package com.zcm.org.springframework.web.context;

import javax.servlet.ServletContext;

import org.springframework.web.context.WebApplicationContext;

import com.zcm.service.support.ConnectionFacoryRegistryUtil;



public class ContextLoaderListener extends	org.springframework.web.context.ContextLoaderListener {	
	
	@Override
	public WebApplicationContext initWebApplicationContext(
			ServletContext servletContext) {
		WebApplicationContext _webApplicationContext = super.initWebApplicationContext(servletContext);		
		ContextHolder.registerApplicationContext(_webApplicationContext);	
		ConnectionFacoryRegistryUtil.initConnectionFactoryRegistry();
		return _webApplicationContext;
	}
	
}
